<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../../css/app.css">
    <link rel="stylesheet" type="text/css" href="../comm/swiper.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../../css/tabBar.css">
    <link rel="stylesheet" type="text/css" href="../comm/shop_comm.css"/>
    <link rel="stylesheet" type="text/css" href="./divide_into.css">
    <title>推荐分成</title>
</head>
<body>
  <div class="header navigationBar">
      <div class="wrapper">
          <span id="btn-back" class="header-btn left-btn backtrack"></span>
          <span class="title">推荐分成</span>
      </div>
  </div>
  <div style="height: 3rem"></div>
  <div class="container" v-cloak>
    <div class="laner-box">
      <div class="laner-top">
        <p>昨日收益(元)</p>
        <span v-text="divideInfo.yesterday_benefit"></span>
      </div>
      <div class="laner-bottom">
        <div @click="toDrawOutDetail">
          <p v-text="divideInfo.finish_withdraw_commission"></p>
          <span>已提现(元)</span>
        </div>
        <div>
          <p v-text="divideInfo.total_commission"></p>
          <span>累计收益(元)</span>
        </div>
      </div>
    </div>

    <div class="line">
      <div>
        <p>可供提现余额(元)</p>
        <span v-text="divideInfo.can_withdraw_commission"></span>
      </div>
      <div @click="toDrawOut">提现</div>
    </div>
    <p class="divide-title">
      <span></span>
      <span>收益明细</span>
    </p>

    <div class="no-data" v-if="divideList.length <= 0">
      <img src="../../../image/shop/no-list.png"/>
      <p>暂无记录</p>
    </div>
    <div class="divide-list" v-if="divideList.length > 0">
      <ul>
        <li v-for="item in divideList">
          <div>
            <div>
              <img :src="item.avater" alt="">
              <span v-text="item.nickname">哈哈哈</span>
            </div>
            <div>
              <p>订单编号：{{item.order_sn}}</p>
              <p>交易时间：{{item.date_pay}}</p>
              <p>订单状态：{{item.order_state}}</p>
            </div>
          </div>
          <div>
            <span>+{{item.commission}}</span>
            <span v-text="item.status_msg"></span>
          </div>
        </li>
      </ul>
    </div>
  </div>

</body>
<script src="../../sea.js" data-main="../../main"></script>
<script type="text/javascript" src="../../vue.js"></script>
<script type="text/javascript" src="./divide_into.js"></script>
</html>
